home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 46 / CDPowerplay46Disc2.iso / utils / xqxset55 / _SETUP.2 / Group3 / XQ Shell Options 1.xpl < prev    next >
Encoding:
XSetup plugin  |  1999-08-02  |  1.6 KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Security"
  5. "NAME"="Shell Extensions"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Allow only approved shell extensions"
  9. "DESCRIPTION 1"="If this option is set, Windows will only allow approved extensions to be executed. This settings is mainly for super-high-security computers."
  10. "DESCRIPTION 2"="Which extension is considered to be "approved" is configured below [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]."
  11. "DESCRIPTION 3"="More information can be found at the MS KB: Q216384."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16.  
  17. 'The CLSIDs for approved shell extensions are registered under the registry key: 
  18. '[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved] 
  19. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\EnforceShellExtensionSecurity"
  20. 'EnforceShellExtensionSecurity is off when the value is zero or is removed, and on when the value is 1. 
  21.  
  22. Sub Plugin_Initialize 
  23.  If GetWinVer=2 then
  24.     i=RegReadValue(sPath)
  25.     if i=1 then SetUIElement 1,true
  26.  else
  27.     Call Disable()
  28.  end if
  29.  
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  b=GetUIElement(1)
  37.  if b=true then
  38.     Call RegWriteValue(sPath,1,2) 
  39.  else
  40.     If IsEmpty(RegReadValue(sPath))=false then
  41.        Call RegDeleteValue(sPath)
  42.     end if
  43.  end if
  44. End Sub
  45.  
  46.  
  47. Sub Plugin_Terminate 
  48. End Sub
  49.  
  50.  
  51.  
  52.